/**
 * @Author: wzx
 * @Description:
 * @Version: 1.0.0
 * @Date: 2021/5/20 上午2:12
 *@Copyright: MIN-Group；国家重大科技基础设施——未来网络北大实验室；深圳市信息论与未来网络重点实验室
 */

package testcontroller

import (
	"context"
	"fmt"
	"vpn-management-server/logger"
	"vpn-management-server/network"
	"vpn-management-server/security/code"
)

func TestController(ctx context.Context, request *network.NetRequest, resp *network.NetResponse) {
	resp.Code = code.SUCCESS
	fmt.Println(request.Command)
	request.SetAttribute("test", "test")
	logger.Logger.InfoWithIdAndConnAndTypeAndCommand(ctx.Value("conn_id").(string), request.GetRemote(), request.Type, request.Command, "测试通过，用户。。。创建了一个白名单（用户名：，密码：）、创建了一条规则（ip：）")
}
